﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200014F RID: 335
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class BoxingClubRewardScNotify : IMessage<BoxingClubRewardScNotify>, IMessage, IEquatable<BoxingClubRewardScNotify>, IDeepCloneable<BoxingClubRewardScNotify>, IBufferMessage
	{
		// Token: 0x17000487 RID: 1159
		// (get) Token: 0x06000F53 RID: 3923 RVA: 0x0002D3AF File Offset: 0x0002B5AF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<BoxingClubRewardScNotify> Parser
		{
			get
			{
				return BoxingClubRewardScNotify._parser;
			}
		}

		// Token: 0x17000488 RID: 1160
		// (get) Token: 0x06000F54 RID: 3924 RVA: 0x0002D3B6 File Offset: 0x0002B5B6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return BoxingClubRewardScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000489 RID: 1161
		// (get) Token: 0x06000F55 RID: 3925 RVA: 0x0002D3C8 File Offset: 0x0002B5C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return BoxingClubRewardScNotify.Descriptor;
			}
		}

		// Token: 0x06000F56 RID: 3926 RVA: 0x0002D3CF File Offset: 0x0002B5CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BoxingClubRewardScNotify()
		{
		}

		// Token: 0x06000F57 RID: 3927 RVA: 0x0002D3D8 File Offset: 0x0002B5D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BoxingClubRewardScNotify(BoxingClubRewardScNotify other) : this()
		{
			this.gDGHFKMDIBB_ = other.gDGHFKMDIBB_;
			this.isWin_ = other.isWin_;
			this.challengeId_ = other.challengeId_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000F58 RID: 3928 RVA: 0x0002D43C File Offset: 0x0002B63C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BoxingClubRewardScNotify Clone()
		{
			return new BoxingClubRewardScNotify(this);
		}

		// Token: 0x1700048A RID: 1162
		// (get) Token: 0x06000F59 RID: 3929 RVA: 0x0002D444 File Offset: 0x0002B644
		// (set) Token: 0x06000F5A RID: 3930 RVA: 0x0002D44C File Offset: 0x0002B64C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GDGHFKMDIBB
		{
			get
			{
				return this.gDGHFKMDIBB_;
			}
			set
			{
				this.gDGHFKMDIBB_ = value;
			}
		}

		// Token: 0x1700048B RID: 1163
		// (get) Token: 0x06000F5B RID: 3931 RVA: 0x0002D455 File Offset: 0x0002B655
		// (set) Token: 0x06000F5C RID: 3932 RVA: 0x0002D45D File Offset: 0x0002B65D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsWin
		{
			get
			{
				return this.isWin_;
			}
			set
			{
				this.isWin_ = value;
			}
		}

		// Token: 0x1700048C RID: 1164
		// (get) Token: 0x06000F5D RID: 3933 RVA: 0x0002D466 File Offset: 0x0002B666
		// (set) Token: 0x06000F5E RID: 3934 RVA: 0x0002D46E File Offset: 0x0002B66E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ChallengeId
		{
			get
			{
				return this.challengeId_;
			}
			set
			{
				this.challengeId_ = value;
			}
		}

		// Token: 0x1700048D RID: 1165
		// (get) Token: 0x06000F5F RID: 3935 RVA: 0x0002D477 File Offset: 0x0002B677
		// (set) Token: 0x06000F60 RID: 3936 RVA: 0x0002D47F File Offset: 0x0002B67F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x06000F61 RID: 3937 RVA: 0x0002D488 File Offset: 0x0002B688
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as BoxingClubRewardScNotify);
		}

		// Token: 0x06000F62 RID: 3938 RVA: 0x0002D498 File Offset: 0x0002B698
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(BoxingClubRewardScNotify other)
		{
			return other != null && (other == this || (this.GDGHFKMDIBB == other.GDGHFKMDIBB && this.IsWin == other.IsWin && this.ChallengeId == other.ChallengeId && object.Equals(this.Reward, other.Reward) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000F63 RID: 3939 RVA: 0x0002D508 File Offset: 0x0002B708
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.GDGHFKMDIBB != 0U)
			{
				num ^= this.GDGHFKMDIBB.GetHashCode();
			}
			if (this.IsWin)
			{
				num ^= this.IsWin.GetHashCode();
			}
			if (this.ChallengeId != 0U)
			{
				num ^= this.ChallengeId.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000F64 RID: 3940 RVA: 0x0002D58F File Offset: 0x0002B78F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000F65 RID: 3941 RVA: 0x0002D597 File Offset: 0x0002B797
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000F66 RID: 3942 RVA: 0x0002D5A0 File Offset: 0x0002B7A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.reward_ != null)
			{
				output.WriteRawTag(26);
				output.WriteMessage(this.Reward);
			}
			if (this.IsWin)
			{
				output.WriteRawTag(48);
				output.WriteBool(this.IsWin);
			}
			if (this.GDGHFKMDIBB != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.GDGHFKMDIBB);
			}
			if (this.ChallengeId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.ChallengeId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000F67 RID: 3943 RVA: 0x0002D634 File Offset: 0x0002B834
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.GDGHFKMDIBB != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GDGHFKMDIBB);
			}
			if (this.IsWin)
			{
				num += 2;
			}
			if (this.ChallengeId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ChallengeId);
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000F68 RID: 3944 RVA: 0x0002D6B0 File Offset: 0x0002B8B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(BoxingClubRewardScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.GDGHFKMDIBB != 0U)
			{
				this.GDGHFKMDIBB = other.GDGHFKMDIBB;
			}
			if (other.IsWin)
			{
				this.IsWin = other.IsWin;
			}
			if (other.ChallengeId != 0U)
			{
				this.ChallengeId = other.ChallengeId;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000F69 RID: 3945 RVA: 0x0002D740 File Offset: 0x0002B940
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000F6A RID: 3946 RVA: 0x0002D74C File Offset: 0x0002B94C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 48U)
				{
					if (num == 26U)
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
						continue;
					}
					if (num == 48U)
					{
						this.IsWin = input.ReadBool();
						continue;
					}
				}
				else
				{
					if (num == 64U)
					{
						this.GDGHFKMDIBB = input.ReadUInt32();
						continue;
					}
					if (num == 104U)
					{
						this.ChallengeId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000675 RID: 1653
		private static readonly MessageParser<BoxingClubRewardScNotify> _parser = new MessageParser<BoxingClubRewardScNotify>(() => new BoxingClubRewardScNotify());

		// Token: 0x04000676 RID: 1654
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000677 RID: 1655
		public const int GDGHFKMDIBBFieldNumber = 8;

		// Token: 0x04000678 RID: 1656
		private uint gDGHFKMDIBB_;

		// Token: 0x04000679 RID: 1657
		public const int IsWinFieldNumber = 6;

		// Token: 0x0400067A RID: 1658
		private bool isWin_;

		// Token: 0x0400067B RID: 1659
		public const int ChallengeIdFieldNumber = 13;

		// Token: 0x0400067C RID: 1660
		private uint challengeId_;

		// Token: 0x0400067D RID: 1661
		public const int RewardFieldNumber = 3;

		// Token: 0x0400067E RID: 1662
		private ItemList reward_;
	}
}
